home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / stermio.h.z / stermio.h
C/C++ Source or Header  |  1992-04-03  |  2KB  |  73 lines

  1. /*    Copyright (c) 1984 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /* #ident    "@(#)kern-port:sys/stermio.h    10.1" */
  9. #ident    "$Revision: 3.4 $"
  10. /*
  11.  * ioctl commands for control channels
  12.  */
  13. #define STSTART        1    /* start protocol */
  14. #define STHALT        2    /* cease protocol */
  15. #define STPRINT        3    /* assign device to printer */
  16. #define STENABLE    4    /* enable polling */
  17. #define STDISABLE    5    /* disable polling */
  18. #define STPOLL        6    /* set polling rate */
  19. #define STCNTRS        7    /* poke for status reports */
  20. #define STTCHAN        8    /* set trace channel number */
  21.  
  22. /*
  23.  * ioctl commands for terminal and printer channels
  24.  */
  25. #define STGET    (('X'<<8)|0)    /* get line options */
  26. #define STSET    (('X'<<8)|1)    /* set line options */
  27. #define    STTHROW    (('X'<<8)|2)    /* throw away queued input */
  28. #define    STWLINE    (('X'<<8)|3)    /* get synchronous line # */
  29. #define STTSV    (('X'<<8)|4)    /* get all line information */
  30.  
  31. struct stio {
  32.     unsigned short    ttyid;
  33.     char        row;
  34.     char        col;
  35.     char        orow;
  36.     char        ocol;
  37.     char        tab;
  38.     char        aid;
  39.     char        ss1;
  40.     char        ss2;
  41.     unsigned short    imode;
  42.     unsigned short    lmode;
  43.     unsigned short    omode;
  44. };
  45.  
  46. /*
  47. **    Mode Definitions.
  48. */
  49. #define    STFLUSH    00400    /* FLUSH mode; lmode */
  50. #define    STWRAP    01000    /* WRAP mode; lmode */
  51. #define    STAPPL    02000    /* APPLICATION mode; lmode */
  52.  
  53. struct sttsv {
  54.     char    st_major;
  55.     short    st_pcdnum;
  56.     char    st_devaddr;
  57.     int    st_csidev;
  58. };
  59.  
  60. struct stcntrs {
  61.     char    st_lrc;
  62.     char    st_xnaks;
  63.     char    st_rnaks;
  64.     char    st_xwaks;
  65.     char    st_rwaks;
  66.     char    st_scc;
  67. };
  68.  
  69. /* trace message definitions */
  70.  
  71. #define LOC    113    /* loss of carrier */
  72.  
  73.